Ext.define('ES.view.widgets.CustomCombo',{
	extend:'Ext.form.field.ComboBox',
	alias:'widget.customcombo',
	initComponent:function(){
		this.addEvents('selectitem');
		this.on('select',this.onSelectHandler);
		this.on('change',function(combo,newValue, oldValue){
			this.fireEvent('select',combo,combo.findRecordByValue(newValue));
		})
		this.callParent(arguments);
	},
	onSelectHandler:function(combo, records){
		this.fireEvent('selectitem',combo,records);
	}
});